Update docs
authorFelix Krull <f_krull@gmx.de>
Tue, 25 Aug 2020 16:44:44 +0000 (18:44 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:56 +0000 (12:53 -0400)
rust-bindings/rust/Dockerfile
rust-bindings/rust/Makefile
rust-bindings/rust/README.md

index 3b0b295eaf77a25ebf76b44ae1643151bc67f168..d09822ba2b20f815348713d84777dbed0649d7ff 100644 (file)
@@ -1,5 +1,4 @@
-ARG FEDORA_VER
-FROM fedora:${FEDORA_VER}
+FROM fedora:latest
 
 RUN dnf install -y curl gcc make tar xz 'dnf-command(builddep)'
 RUN dnf builddep -y ostree
index 1b4f67f9f5def56682520423565af1898a29a05b..a5b5b6953ec5ec0c5c48eb7bdd5aa044a443a265 100644 (file)
@@ -1,6 +1,7 @@
 GIR_REPO := https://github.com/gtk-rs/gir.git
 GIR_VERSION := 2d1ffab19eb5f9a2f0d7a294dbf07517dab4d989
 RUSTDOC_STRIPPER_VERSION := 0.1.13
+OSTREE_VER := 2020.4
 
 all: gir
 
@@ -48,8 +49,7 @@ gir-files:
 
 gir-files/OSTree-1.0.gir:
        podman build \
-               --build-arg FEDORA_VER=32 \
-               --build-arg OSTREE_VER=2020.4 \
+               --build-arg OSTREE_VER=$(OSTREE_VER) \
                -t ostree-build \
                .
        podman run \
index 35ef22e1bd7283ea40fecd5a585e16023a4b9690..eaae430b7cc8049fd177f50e9b57a8b4c9592da7 100644 (file)
@@ -87,9 +87,18 @@ parts).
 
 CI includes the LGPL docs in the documentation build.
 
+### Updating glib-rs
+* update `GIR_VERSION` in `Makefile` to the latest gir commit (matching the target glib-rs version)
+* `make gir` to regenerate the generated code
+* inspect differences in generated code
+* update glib-rs dependencies in `Cargo.toml` and `sys/Cargo.toml`
+
 ### Updating ostree
-* update the bundled `gir/OSTree-1.0.gir` file
+* update `OSTREE_VERSION` in `Makefile`
+* `make update-gir-files` to update all gir files
+* inspect differences in `OSTree-1.0.gir`
 * `make gir` to regenerate the generated code
+* add any new feature levels to `Cargo.toml`
 * update the example feature level in `README.md` in case of a new feature level
 
 ### Releases